//
//  AEHomePageSubViewModel.h
//  AESOLAR_IOS
//
//  Created by Bin Tang on 2024/10/18.
//  Copyright © 2024 Mr.Wang. All rights reserved.
//

#import "TYZBaseViewModel.h"
#import "AENewsListRequest.h" // 列表
#import "AENewsLikeRequest.h" // 点赞/取消

NS_ASSUME_NONNULL_BEGIN

@interface AEHomePageSubViewModel : TYZBaseViewModel

@property (nonatomic, assign) NSInteger newsGroupId;

@property (nonatomic, copy) NSString *newsGroup;


/// 搜索内容
@property (nonatomic, copy) NSString *searchMsg;

@property (nonatomic, strong) AENewsInfoReqModel *reqModel;



/// 获取新闻列表
/// - Parameter completion: completion description
- (void)requestWithNewsInfos:(RequestCompletionBlock)completion;


/// 点赞/取消
/// - Parameters:
///   - newsId: 新闻id
///   - like: 1 赞；1 取消
///   - completion: completion description
- (void)requestWithNewsLikeNewsId:(NSInteger)newsId like:(NSInteger)like completion:(RequestCompletionBlock)completion;

@end

NS_ASSUME_NONNULL_END
